import request from '@/utils/request'
// 刷新验证码
export function refreshCaptcha() {
  return request({
    url: '/public/captcha',
    method: 'get'
  })
}

export function login(data) {
  return request({
    url: '/public/login',
    method: 'post',
    data
  })
}

export function logout(token) {
  return request({
    url: '/public/logout',
    method: 'get',
    headers: {
      'Authorization': "Bearer " + token
    }
  })
}